try: 
  from xml.etree import ElementTree
except ImportError:  
  from elementtree import ElementTree
import gdata.spreadsheet.service
import gdata.service
import atom.service
import gdata.spreadsheet
import gdata.alt.appengine
import atom

gd_client = gdata.spreadsheet.service.SpreadsheetsService()
gdata.alt.appengine.run_on_appengine(gd_client)
gd_client.email = 'david.leblanc@gmail.com'
gd_client.password = ''
gd_client.source = 'hourTrackerSpike-1.0'
gd_client.ProgrammaticLogin()


feed = gd_client.GetSpreadsheetsFeed()

spreadsheetName = "Hours Testing Spreadsheet"

for entry in feed.entry:
    if entry.title.text == spreadsheetName:
        print "using", entry.title.text
        key = entry.id.text.split('/')[-1] 
        break
        
print key

worksheetFeed = gd_client.GetWorksheetsFeed(key)
worksheetId = worksheetFeed.entry[0].id.text.split('/')[-1]

print worksheetId

newEntry = gd_client.UpdateCell(1, 1, '1234', key, worksheetId)

if isinstance(newEntry, gdata.spreadsheet.SpreadsheetsCell):
    print 'Updated!'
else:
    print str(entry)